import React from 'react'
import cx from 'classnames'
import style from './style.radio'

class Radio extends React.Component {
	render() {
		const { onChange, active, label, className, disabled, ...others } = this.props
		return (
			<div className={cx({
				[style.root]: true,
				[className]: !!className
			})}
		 	>
        <input
          disabled={disabled}
          onChange={onChange}
          {...others}
          type="radio"
        />
        <label>{label}</label>
			</div>
		)
	}
}

export default Radio
